<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<base href="<%=basePath%>"/>
	<div class="wbs_scroll" style="height:450px; background-color: white;" >
	  <form action="<%=basePath%>examine/saveExamine" id="thisForm" method="post">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="gridview" id="sale_saleChance_table">
               <thead>
	                <tr class="title">
	                	<td style="width: 10%">评分类型</td>
	                    <td style="width: 25%">评分项目</td>
	                    <td style="width: 10%">项目分值</td>
	                    <td style="width: 10%">项目备注</td>
	                    <td style="width: 25%">评分标准</td>
	                    <td style="width: 12%">评分标准</td>
	                    <td style="width: 7%">分值
		                    <input type="hidden" name="fromUser.id" value="<s:property value="fromUser.id" />" >
							<input type="hidden" name="toUser.id" value="<s:property value="toUser.id" />" >
							<input type="hidden" name="examineManageVo.id" value="<s:property value="examineManageVo.id" />" />
						</td>
	                </tr>
                </thead>
                <tbody class="mytbody">
                	<s:iterator value="listExamineProjectVo" status="s">
	                	<tr>
	                		<td style="width: 10%"><s:property value="etype" /></td>
	                		<td style="width: 25%"><s:property value="name" /></td>
	                		<td style="width: 10%"><s:property value="score" /></td>
	                		<td style="width: 10%"><s:property value="memo" /></td>
	                		<td style="width: 39%" colspan="2">
	                			<table style="width: 100%">
		                			<s:iterator value="epsvList" status="epsv">
		                				<tr>
                							<td style="width: 70%"><s:property value="name" /></td>
                							<td style="width: 30%"><s:property value="score" /></td>
                						</tr>
		                			</s:iterator>
	                			</table>
	                		</td>
	                		<td style="width: 7%">
	                			<input type="hidden" name="examineVoList[<s:property value="#s.index"/>].eProjectVo.id" value="<s:property value="id" />" />
	                			<input type="hidden" name="examineVoList[<s:property value="#s.index"/>].type" value="<s:property value="type" />" />
	                			<input type="text" name="examineVoList[<s:property value="#s.index"/>].score" style="width:30px;" />
	                		</td>
	                	</tr>
                	</s:iterator>
                </tbody>
           </table>
    </form>
    </div>
    <input type="button" id="thisButton" value="提交" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
	<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
 <script type="text/javascript">
	/* 表单提交 */
	i.formSubmit("thisButton",	//绑定的按钮id
				  "thisForm" ,   //提交的表单id
				  function(result){
					  	var jsonMsgObj=new JsonMsgObj(result);
						var  msg=jsonMsgObj.getMessage();
					    var codeId=jsonMsgObj.getCodeid();
						var isOk=jsonMsgObj.getIsok();
						if( isOk ){
						    aerouiAlert(msg);
							hideDialog();// 隐藏窗口
							window.location.reload();
						}else{		// 如果编辑失败了
						  JsManageInfoHandleException( result , function(msg , codeId , isOk){
						  		hideDialog();// 隐藏窗口
						   });
					   }
					});
</script>